home *** CD-ROM | disk | FTP | other *** search
- EXECUTE
-
- Executes a script with optional argument substitution.
-
- Format
-
- EXECUTE <script> [{<arguments>}]
-
- Template
-
- FILE/A
-
- Location
-
- C:
-
- EXECUTE is used to run scripts of AmigaDOS commands. The lines in the script
- are executed as if they had been entered at a Shell prompt. If the s
- protection bit of a file is set and the file is in the search path, enter
- only the file name; the EXECUTE command is not needed.
-
- You can use parameter substitution in scripts by including special keywords
- in the script. When these keywords are used, you can pass variables to the
- script by including the variable in the EXECUTE command line. Before the
- script is executed, AmigaDOS checks the parameter names in the script against
- any arguments given on the command line. If any match, AmigaDOS substitutes
- the values specified on the command line for the parameter name in the
- script. You can also specify default values for AmigaDOS to use if no
- variables are given. If you have not specified a variable and there is no
- default specified in the script, then the value of the parameter is empty (no
- substitution is made).
-
- The allowable keywords for parameter substitution are explained in Chapter 5.
- Each keyword command line must be prefaced with a dot character (.).
-
- See also: IF, SKIP, FAILAT, LAB, ECHO, RUN, QUIT. For examples using the
- EXECUTE command, see Chapter 8.
-